package com.hzlh.core.utils;

public class ValidateUtils {

	public static boolean isInteger(String str) {
		char[] chars = str.toCharArray();
		for (int i = 0; i < chars.length; i++) {
			if ((chars[i] > '9' || chars[i] < '0') && !(i == 0 && chars[0] == '-' && chars.length > 1)) {
				return false;
			}
		}
		return chars.length > 0;
	}
}
